from Models import db


class User(db.Model):
    __tablename__ = 'user'

    id = db.Column(db.Integer, primary_key=True)
    username = db.Column(db.String(30), nullable=False, info='账号')
    phone = db.Column(db.String(30), info='手机号')
    email = db.Column(db.String(30), info='邮箱')
    password = db.Column(db.String(120), nullable=False, info='密码')
